package src.accenture.com.entity;

import java.io.Serializable;

import java.util.Date;

public class MblRegistrationPK implements Serializable {
    private String empId;
    private Date fromdate;
    private Date todate;
    private String typeId;

    public MblRegistrationPK() {
    }

    public MblRegistrationPK(String empId, Date fromdate, Date todate, String typeId) {
        this.empId = empId;
        this.fromdate = fromdate;
        this.todate = todate;
        this.typeId = typeId;
    }

    public boolean equals(Object other) {
        if (other instanceof MblRegistrationPK) {
            final MblRegistrationPK otherMblRegistrationPK = (MblRegistrationPK)other;
            final boolean areEqual =
                (otherMblRegistrationPK.empId.equals(empId) && otherMblRegistrationPK.fromdate.equals(fromdate) &&
                 otherMblRegistrationPK.todate.equals(todate) && otherMblRegistrationPK.typeId.equals(typeId));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }

    public String getEmpId() {
        return empId;
    }

    public void setEmpId(String empId) {
        this.empId = empId;
    }

    public Date getFromdate() {
        return fromdate;
    }

    public void setFromdate(Date fromdate) {
        this.fromdate = fromdate;
    }

    public Date getTodate() {
        return todate;
    }

    public void setTodate(Date todate) {
        this.todate = todate;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }
}
